import Vue from 'vue'
import VueRouter from 'vue-router'
import Video from '../views/video.vue'
import Group from '../views/group.vue'
import We from '../views/we.vue'
import Movie from '../views/movie.vue'
import Book from '../views/book.vue'
import Detail from '../views/detail.vue'
import No from '../views/no.vue'


Vue.use(VueRouter)

const routes = [
  {
    path: '/video',
    name: 'video',
    component: Video
  },
  {
    path: '/group',
    name: 'group',
    component: Group
  },
  {
    path: '/we',
    name: 'we',
    component: We
  },
  {
    path: '/movie',
    name: 'movie',
    component: Movie
  },
  {
    path: '/book',
    name: 'book',
    component: Book
  },
  {
    path: '/detail',
    name: 'detail',
    component: Detail
  },
  {
    path: '/',
    redirect:'/We'
    
  },
  {
    path: '*',
    name: 'no',
    component: No
  },
  
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
